package com.db.transaction.manager;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.env.Environment;


@SpringBootApplication
public class DbTransactionManagerApplication {

    private static final Logger log = LoggerFactory.getLogger(DbTransactionManagerApplication.class);

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(DbTransactionManagerApplication.class);
        Environment environment = application.run(args).getEnvironment();
        log.info("SwaggerIO: http://localhost:{}/swagger-ui.html", environment.getProperty("server.port"));

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DbTransactionManagerApplication.class);
    }

}
